package com.yej.aiPolice.model.beans

import java.sql.Timestamp
import java.util.*

class User {
    var id = 0
    var username: String? = null
    var password: String? = null
    var realname: String? = null
    var tel: String? = null
    var dfAddress: String? = null
    var emgContactName: String? = null
    var emgContactNum: String? = null
    var del: Int? = null
    var createTime: Timestamp? = null
    var updateTime: Timestamp? = null

    override fun equals(o: Any?): Boolean {
        if (this === o) return true
        if (o == null || javaClass != o.javaClass) return false
        val user = o as User
        return id == user.id &&
                username == user.username &&
                password == user.password &&
                realname == user.realname &&
                tel == user.tel &&
                dfAddress == user.dfAddress &&
                emgContactName == user.emgContactName &&
                emgContactNum == user.emgContactNum &&
                del == user.del &&
                createTime == user.createTime &&
                updateTime == user.updateTime
    }

    override fun hashCode(): Int {
        return Objects.hash(
            id,
            username,
            password,
            realname,
            tel,
            dfAddress,
            emgContactName,
            emgContactNum,
            del,
            createTime,
            updateTime
        )
    }
}